<template>
<uni-shadow-root class="partials-nearShop-simpleNearShop"><template name="simpleNearShop">
<block v-if="shops.length >0">
  <view class="store_list">
    <view v-for="(item,index) in (shops)" :key="item.index" class="store_item" :data-link="'near_shop_page.html?addShopId='+(item.id)" @click="tolinkUrl">
      <view class="store_item_left">
        <image class="store_item_logo" mode="widthFix" :src="(item.shopLogo)+'?x-oss-process=style/preview'" v-if="item.shopLogo"></image>
        <image class="store_item_logo" mode="widthFix" src="https://image1.sansancloud.com/xianhua/2019_12/17/11/16/47_265.jpg?x-oss-process=style/preview_120" v-else></image>
      </view>
      <view class="store_item_right">
        <text class="store_item_name">{{item.shopName}}</text>
        <view class="store_item_service">
          <text>服务时间：{{item.serviceStartTime}}:00-{{item.serviceEndTime}}:00</text>
          <text class="distance_text" v-if="item.distance">{{publicFun.toFix(item.distance)}}km</text>
          <text class="distance_text" v-else>未设置</text>
        </view>
        <scroll-view class="tags_content" scroll-x>
          <text v-for="(tags,index) in (item.tagArray)" :key="tags.index" :style="'border:2rpx solid '+(defaultColor)+';color:'+(defaultColor)" class="tags_item" v-if="item.tagArray">{{tags}}</text>
        </scroll-view>
      </view>
    </view>
  </view>
</block>
<block v-else>
  <view class="noproduct">
    <image mode="widthFix" src="https://image1.sansancloud.com/xianhua/2019_12/16/15/54/55_950.jpg?x-oss-process=style/preview_120"></image>
    <text>没有相关店铺</text>
  </view>
</block>
</template></uni-shadow-root>
</template>
<wxs src="../../public/publicFun.wxs" module="publicFun"></wxs>
<script>

global['__wxRoute'] = 'partials/nearShop/simpleNearShop'

Component({})

export default global['__wxComponents']['partials/nearShop/simpleNearShop']
</script>
<style platform="mp-weixin">

</style>